<template>
  <div>
  <h1>欢迎来到首页~ {{loginName}}</h1>
  </div>
</template>

<script>
  export default {
    name: "Home",
    data() {
      return {
        loginName: ''
      }
    },
    mounted() {
      this.loginName = this.$store.getters.getUser.username;
    }
  }
</script>

<style scoped>

</style>
